import requests
from base64 import b64encode


headers = {
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36"
}
cookies = {
    "sessionid": "4uez04jegla21ezvqa4dtg2h43xhm9e6"
}
url = "https://match.yuanrenxue.cn/api/match/12"
sum_list = []
for i in range(1,6):
    m_tmp = b64encode(('yuanrenxue' + str(i)).encode())
    params = {
        "page": i,
        "m": m_tmp.decode()
    }
    response = requests.get(url, headers=headers, cookies=cookies, params=params)
    res_data = response.json()['data']
    for i in res_data:
        sum_list.append(i['value'])
print(sum(sum_list))